home *** CD-ROM | disk | FTP | other *** search
Wrap
ppppddddrrrr((((3333GGGG)))) ppppddddrrrr((((3333GGGG)))) NNNNAAAAMMMMEEEE ppppddddrrrr,,,, ppppddddrrrriiii,,,, ppppddddrrrrssss,,,, ppppddddrrrr2222,,,, ppppddddrrrr2222iiii,,,, ppppddddrrrr2222ssss - specifies the next point of a polygon CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN vvvvooooiiiidddd ppppddddrrrr((((xxxx,,,, yyyy,,,, zzzz)))) CCCCoooooooorrrrdddd xxxx,,,, yyyy,,,, zzzz;;;; vvvvooooiiiidddd ppppddddrrrriiii((((xxxx,,,, yyyy,,,, zzzz)))) IIIIccccoooooooorrrrdddd xxxx,,,, yyyy,,,, zzzz;;;; vvvvooooiiiidddd ppppddddrrrrssss((((xxxx,,,, yyyy,,,, zzzz)))) SSSSccccoooooooorrrrdddd xxxx,,,, yyyy,,,, zzzz;;;; vvvvooooiiiidddd ppppddddrrrr2222((((xxxx,,,, yyyy)))) CCCCoooooooorrrrdddd xxxx,,,, yyyy;;;; vvvvooooiiiidddd ppppddddrrrr2222iiii((((xxxx,,,, yyyy)))) IIIIccccoooooooorrrrdddd xxxx,,,, yyyy;;;; vvvvooooiiiidddd ppppddddrrrr2222ssss((((xxxx,,,, yyyy)))) SSSSccccoooooooorrrrdddd xxxx,,,, yyyy;;;; All of the above routines are functionally the same. They differ only in the type declarations of their parameters and in whether they expect a two- or three-dimensional space. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _x expects the _x coordinate of the next defining point for the polygon. _y expects the _y coordinate of the next defining point for the polygon. _z expects the _z coordinate of the next defining point for the polygon. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ppppddddrrrr specifies the next point of a polygon. When ppppddddrrrr is executed, it draws a line to the specified point (_x,_y,_z) which then becomes the current graphics position. The next ppppddddrrrr call will start drawing from that point. To draw a typical polygon start with ppppmmmmvvvv, follow it with a sequence of calls to ppppddddrrrr and end it with ppppcccclllloooossss. EEEEXXXXAAAAMMMMPPPPLLLLEEEE The following sequence draws a square: pmv(0.0, 0.0, 0.0); pdr(1.0, 0.0, 0.0); pdr(1.0, 1.0, 0.0); pdr(0.0, 1.0, 0.0); pclos(); PPPPaaaaggggeeee 1111 ppppddddrrrr((((3333GGGG)))) ppppddddrrrr((((3333GGGG)))) SSSSEEEEEEEE AAAALLLLSSSSOOOO bgnpolygon, endpolygon, pclos, pmv, v NNNNOOOOTTTTEEEESSSS ppppddddrrrr should not be used in new development. Rather, polygons should be drawn using the high-performance vvvv commands, surrounded by calls to bbbbggggnnnnppppoooollllyyyyggggoooonnnn and eeeennnnddddppppoooollllyyyyggggoooonnnn. There can be no more than 256 vertices in a polygon. Therefore, there can be no more than 255 ppppddddrrrr calls between ppppmmmmvvvv and ppppcccclllloooossss. PPPPaaaaggggeeee 2222